package com.xca.znb.model.impl;

import android.content.Context;

import com.xca.znb.database.UserDAO;
import com.xca.znb.model.imodel.ILocal;

public class LocalImpl implements ILocal {
    private UserDAO userDAO ;
    public LocalImpl(Context context){userDAO = new UserDAO(context) ;}
    @Override
    public boolean addLocal(String name , String phone , String address , String type , String login_phone){
        return userDAO.addLocal(name , phone , address , type , login_phone);
    }

    @Override
    public void updateLocalType(String login_phone) {
        userDAO.updateDefaultLocal(login_phone);
    }
}
